/**
 * @author Jon Adams
 */
package org.osflash.signals.natives.sets;

import org.osflash.signals.natives.NativeSignal;
import flash.events.DataEvent;
import flash.events.Event;
import flash.events.IOErrorEvent;
import flash.events.SecurityErrorEvent;
import flash.net.XMLSocket;

class XMLSocketSignalSet extends EventDispatcherSignalSet {
	public var close(getClose, never) : NativeSignal;
	public var connect(getConnect, never) : NativeSignal;
	public var data(getData, never) : NativeSignal;
	public var ioError(getIoError, never) : NativeSignal;
	public var securityError(getSecurityError, never) : NativeSignal;

	public function new(target : XMLSocket) {
		super(target);
	}

	public function getClose() : NativeSignal {
		return getNativeSignal(Event.CLOSE);
	}

	public function getConnect() : NativeSignal {
		return getNativeSignal(Event.CONNECT);
	}

	public function getData() : NativeSignal {
		return getNativeSignal(DataEvent.DATA, DataEvent);
	}

	public function getIoError() : NativeSignal {
		return getNativeSignal(IOErrorEvent.IO_ERROR, IOErrorEvent);
	}

	public function getSecurityError() : NativeSignal {
		return getNativeSignal(SecurityErrorEvent.SECURITY_ERROR, SecurityErrorEvent);
	}

}

